﻿<html DIR="LTR" xmlns:tool="http://www.microsoft.com/tooltip" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
  <head>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8" />
    <META NAME="save" CONTENT="history" />
    <title>isWrapperFor 方法 (SQLServerConnectionPoolDataSource)</title>
    
    <link rel="stylesheet" type="text/css" href="../local/Classic.css">
      
    </link>
    
    <script src="../local/script.js">
      
    </script><script src="../local/script_main.js">&amp;nbsp;</script>
  </head>
  <body>
    <!--Topic built:04/01/2010 05:03:28-->

    
    
    
    
    
    
    
    
    
    <div id="header">
      <table width="100%" id="topTable"><tr>
          <td align="left">
            <span id="headerBold">isWrapperFor 方法 (SQLServerConnectionPoolDataSource)</span>
          </td>
          <td align="right">
            
          </td>
        </tr></table>
      
      
      
    </div>
    <div id="mainSection">
      
        
        
    <font color="DarkGray">
      
    </font>
    <p />
    
    <p />
  
        <div id="introductionSection" class="section">
    <p>指示此对象是否为指定接口的包装。</p>
    <div style="margin: .5em 1.5em .5em 1.5em"><b>注意：</b>
      从 Microsoft SQL Server JDBC Driver 2.0 版开始引入此功能。<p />
    </div>
  </div><h1 class="heading">语法</h1><div id="syntaxSection" class="section"><div class="sampleCode"><span codeLanguage="other"><pre>
public boolean <b>isWrapperFor</b>(Class <i>iface</i>)</pre></span></div><h1 class="heading">参数</h1><div id="parametersSection" class="section" name="collapseableSection">
    <content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
      <p xmlns="">
        <i>iface</i>
      </p>
      <p xmlns="">定义接口的 <b>class</b>。</p>
    </content>
  </div></div><h1 class="heading">返回值</h1><div id="returnValueSection" class="section" name="collapseableSection">
    <content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
      <p xmlns="">
        如果此对象实现了接口或包装了实现接口的对象，则为 <b>true</b>。否则为 <b>false</b>。</p>
    </content>
  </div><h1 class="heading">异常</h1><div id="exceptionsSection" class="section" name="collapseableSection">
    <content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
      <p xmlns="">
        <a href="af5ef257-7cf6-4db3-b1ee-07d22d82bef1.htm">SQLServerException</a>
      </p>
    </content>
  </div><h1 class="heading">备注</h1><div id="remarksSection" class="section" name="collapseableSection">
    <content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
      <p xmlns=""><a href="d612461d-4c3f-46db-b968-ff4c80b2aa7c.htm">isWrapperFor</a> 方法和 <a href="f5c9b734-2096-4ae4-a284-6b4d1b4a00d4.htm">unwrap</a> 方法由在 JDBC 4.0 规范中引入的 java.sql.Wrapper 接口定义。</p>
      <p xmlns="">如果此方法返回 true，则将使用同一参数成功调用 <a href="f5c9b734-2096-4ae4-a284-6b4d1b4a00d4.htm">unwrap</a>。</p>
      <p xmlns="">有关详细信息，请参阅<a href="27fc9b72-9f21-4728-abcb-5c015f28a6ab.htm">包装和接口</a>。</p>
    </content>
  </div><span id="seeAlsoSpan"><h1 class="heading">请参阅</h1></span><div id="seeAlsoSection" class="section" name="collapseableSection"><a href="f5c9b734-2096-4ae4-a284-6b4d1b4a00d4.htm">unwrap 方法 (SQLServerConnectionPoolDataSource)</a><br /><a href="b00e5a90-2af7-4d04-8ef8-256183777dcf.htm">SQLServerConnectionPoolDataSource 类</a><br /><a href="b021a248-e046-4709-bece-9966d3961677.htm">SQLServerConnectionPoolDataSource 方法</a><br /><a href="dac0337e-8088-488c-a25a-801a2190f6ca.htm">SQLServerConnectionPoolDataSource 成员</a><br /><br /></div><!--[if gte IE 5]>
			<tool:tip element="seeAlsoToolTip" avoidmouse="false"/><tool:tip element="languageFilterToolTip" avoidmouse="false"/><tool:tip element="roleInfoSpan" avoidmouse="false"/>
		<![endif]-->
      <div id="footer" class="section">
        
		<hr />
		
		<span id="fb" class="feedbackcss">
			
			
		</span>
		
		<a href="9bad553b-9e70-4696-8499-2e35f772a1e0.htm">
			
			© 2010 Microsoft Corporation。保留所有权利。
		</a>
 	
	
      </div>
    </div>
  </body>
</html>